package com.kdd.campus.common.exception;

import lombok.Data;

/**
 * @Auther: fcp
 * @Date: 2020/5/5 15:56
 * @Description:
 */
@Data
public class MyException extends RuntimeException{
    public Integer code;

    public MyException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMessage());
        this.code = exceptionEnum.getCode();
    }
}
